package com.mallcloud.mall.app.api.entity.dto;

import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel(value = "AppCartDTO", description = "购物车表")
@Data
public class AppCartDTO extends BaseModel {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "产品ID不能为空")
    @ApiModelProperty(value = "产品ID")
    private Long spuId;

    @NotNull(message = "SkuID不能为空")
    @ApiModelProperty(value = "SkuID")
    private Long skuId;

    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty(value = "商品数量")
    private Integer cartNum;
}
